package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgSupplier;
import com.ygqh.baby.po.YgSupplierExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface YgSupplierMapper {
    int countByExample(YgSupplierExample example);

    int deleteByExample(YgSupplierExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgSupplier record);

    int insertSelective(YgSupplier record);

    List<YgSupplier> selectByExample(YgSupplierExample example);

    YgSupplier selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgSupplier record, @Param("example") YgSupplierExample example);

    int updateByExample(@Param("record") YgSupplier record, @Param("example") YgSupplierExample example);

    int updateByPrimaryKeySelective(YgSupplier record);

    int updateByPrimaryKey(YgSupplier record);

    List<YgSupplier> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

    int countSuper(@Param("q") String q);

    int checkSupplierName(@Param("supplierName") String supplierName, @Param("id") Long id);

    int checkLoginName(@Param("loginName") String loginName);

    Boolean isSyncWDT(@Param("id") Long id);

    List<YgSupplier> selectListBySupplierName(@Param("list") List<String> supplierNameList);

    List<Long> selectSupplierIdListWithTrade(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
}